﻿using System.ComponentModel.DataAnnotations;

namespace RBAC.Api.Read.Dto
{
    public class LoginDto
    {
        public int Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(100)]
        public string Username { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(100)]
        public string Password { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(100)]
        public string Name { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(100)]
        public string RoleName { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        [StringLength(300)]
        public string? Description { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        public string RoleId { get; set; }
    }
}
